<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

//使用正则需要开启路由完全匹配  
// Route::pattern([
// 	'id' => '\d{2}',
// ]);

Route::get('hello/:name', 'index/hello');

//Route::view('test','index@test');//直接渲染模型
Route::get('test/:id$', 'index/index/test');//完全能匹配可在配置文件修改或者在动态参数后面添加$符号
// Route::get('test', 'index/index/test');

// return [

// ];
